Block Template Utils: Add navigation overlay template part area const…#10692
Block Template Utils: Add navigation overlay template part area const…#10692scruffian wants to merge 1 commit intoWordPress:trunkfrom
Conversation
…ant. Introduces the `WP_TEMPLATE_PART_AREA_NAVIGATION_OVERLAY` constant to define a dedicated template part area for navigation overlays. This provides more specificity than the generic "overlay" naming and aligns with the navigation block's requirements. Changes: - Adds new constant `WP_TEMPLATE_PART_AREA_NAVIGATION_OVERLAY` with value `'navigation-overlay'` - Registers the navigation overlay template part area in `get_allowed_block_template_part_areas()` - Updates the label to "Navigation Overlay" for consistency - Clarifies the description to be more specific about navigation overlay usage Props: Contributors from Gutenberg PR #74444 See: WordPress/gutenberg#74444 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
|
This was superseded by https://github.com/WordPress/wordpress-develop/pull/10844/changes |
Summary
Backports the changes from Gutenberg PR WordPress/gutenberg#74444 to rename the navigation overlay template part area.
This PR introduces the
WP_TEMPLATE_PART_AREA_NAVIGATION_OVERLAYconstant to define a dedicated template part area for navigation overlays, providing more specificity than the generic "overlay" naming.Changes
WP_TEMPLATE_PART_AREA_NAVIGATION_OVERLAYwith value'navigation-overlay'insrc/wp-includes/block-template-utils.phpContext
The Gutenberg PR renamed the generic "overlay" template part area to "navigation-overlay" for better clarity and specificity. This backport brings that constant definition to WordPress core.
The backport is minimal since WordPress core only needs the PHP constant definition. The JavaScript changes in the Gutenberg PR are bundled with the block library and will be included when the Gutenberg packages are synced to core.
There is an accompanying PR that was an earlier version of this here: #10581
Props:
getdaveTrac ticket: https://core.trac.wordpress.org/ticket/64334#ticket